package com.study.common.jpush.service;

import cn.jpush.api.push.model.PushPayload;
import com.study.common.jpush.domain.PushBean;

/**
 * 极光推送
 *
 * 封装第三方API
 */
public interface IJPushService {

    /**
     * 推送所有用户
     * @param pushBean
     * @return
     */
    boolean pushAll(PushBean pushBean);

    /**
     * 仅推送IOS
     * @param pushBean
     * @return
     */
    boolean pushIos(PushBean pushBean);

    boolean pushIos(PushBean pushBean, String... registids);

    /**
     * 仅推送安卓
     * @param pushBean
     * @return
     */
    boolean pushAndroid(PushBean pushBean);

    boolean pushAndroid(PushBean pushBean, String... registids);

    boolean pushUserKey(PushBean pushBean,String deviceToken);

    boolean sendPush(PushPayload pushPayload);

}
